<?php
 require('db_connect.php');
?>

Test DB <br/>

<?php
 $sql = "SELECT realm_name FROM realms";
 $result = $db->Execute($sql);
 if ($result === false) die("failed");  
// foreach ($result as $name)
//	echo $name."<br />";

 while (!$result->EOF) {
	for ($i=0, $max=$result->FieldCount(); $i < $max; $i++){
		   print $result->fields[$i].' ';
		   print "<br/>";
	}
	$result->MoveNext();
	
 }
 
?>

